package com.lggry.array.type;

public class type2 {
    public static void main(String[] args) {
        //理解表达式的自动类型提升
        int c = calc3((byte) 1,(byte) 2);
        System.out.println(c);
    }

    //需求：接收各种类型的数据运算
    public static double calc2(int a, int b, double c, char r) {
        return a+b+c+r;
    }

    public static int calc3(byte a, byte b){
        return a+b;
    }
}
